<template>
  <div>
    <el-form :model="ruleForm" ref="ruleForms">
      <el-form-item label="活动名称" prop="name">
        <el-input v-model="ruleForm.name"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button @click="resetForm()">重置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        name: ""
      }
    };
  },
  methods: {
    resetForm(formName) {
      console.log(this.ruleForm.name) 
      this.$refs.ruleForms.resetFields();
    }
  }
};
</script>